package scheduler

import "demo02/crawler/engine"

type Simple struct {
	workerChan chan engine.Request
}

func (s *Simple) ConfigreMasterWorkerChan(c chan engine.Request) {
	s.workerChan = c
}

func (s *Simple) Submit(r engine.Request) {
	go func() {
		s.workerChan <- r
	}()
}
